<?php

include_once 'OSC.phps';

$sc3_ip = '127.0.0.1'; // supercollider 
$sc3_port = 57120;
$osc_path = '/nppeval';

// temp file path is first commandline argument
$filepath = $argv[1];

// create OSC client (see OSC.php for more info)
$c = new OSCClient();
$c->set_destination($sc3_ip, $sc3_port);
$msg = new OSCMessage($osc_path, array($filepath));
$c->send($msg);
die();
?> 

